package com.cinema.model;

public class FrontDesk extends User {

    // 构造函数
    public FrontDesk(String userId, String username, String password, String phoneNumber) {
        super(userId, username, password, "frontdesk", phoneNumber);
    }

    // 实现修改密码方法
    @Override
    public boolean changePassword(String oldPassword, String newPassword) {
        if (this.password.equals(oldPassword)) {
            this.password = newPassword;
            return true;
        }
        return false;
    }

    // 前台特有方法（后续扩展）
    public void sellTicket() {
        System.out.println("售票功能...");
    }
}
